package com.behavioranalysis.flinkprogram.dao.factory;

import com.behavioranalysis.flinkprogram.dao.*;
import com.behavioranalysis.flinkprogram.dao.impl.*;

/**
 * DAO工厂类
 */
public class DAOFactory {

    /**
     * 获取任务管理DAO
     *
     * @return
     */
    public static ITaskDAO getTaskDAO() {
        return new TaskDAOImpl();
    }

    /**
     * 获取session聚合统计DAO
     *
     * @return
     */
    public static ISessionAggrStatDAO getSessionAggrStatDAO() {
        return new SessionAggrStatDAOImpl();
    }

    public static ISessionRandomExtractDAO getSessionRandomExtractDAO() {
        return new SessionRandomExtractDAOImpl();
    }

    public static IAdBlacklistDAO getAdBlackListDAO() {
        return new AdBlacklistDAOImpl();
    }

    public static IAdUserClickCountDAO getAdUserClickCountDAO() {
        return new AdUserClickCountDAOImpl();
    }

    public static ITimingTaskDAO getTimingTaskDAO() {
        return new TimingTaskDAOImpl();
    }
}
